package com.example.layui.demo.entity;

import lombok.Data;

@Data
public class ResultEntity<E> {
    private int code;
    private String msg;
    private int count;
    private E data;


    public ResultEntity(int code, String msg, int count, E data) {
        this.code = code;
        this.msg = msg;
        this.count = count;
        this.data = data;
    }

    public ResultEntity(int code, String msg, E data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

}
